<!--这是一个 顶部条-中间内容 的模板组件，只需要更换路由即可-->
<template>
  <div class="common-layout">
    <el-container>
      <el-header class="head">
        <top-menu></top-menu>
      </el-header>
      <el-main class="mainf">
        <router-view/>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import TopMenu from "@/components/top-menu";

export default {
  name: "only-topmenu-layout",
  components: {TopMenu}
}
</script>

<style scoped>

.head {
  padding: 0;
  margin: 0;
  /*background-color: rgb(255, 255, 255, 0);*/
}

.mainf {
  background-color: white;
}

</style>
